using System;

namespace BuffSystem
{
    [Serializable]
    public class FunctionComponent
    {
        [NonSerialized] protected Buff _buff;
        [NonSerialized] protected BuffManager _owner;
        [NonSerialized] protected BuffManager _target;

        /// <summary>
        /// get the owner and the target
        /// </summary>
        /// <param name="owner"></param>
        /// <param name="target"></param>
        public virtual void RegisterPrepare(Buff buff, BuffManager owner, BuffManager target)
        {
            _buff = buff;
            _owner = owner;
            _target = target;
        }
        public virtual void Unregister() { }
    }
}
